import request from '@/utils/request'
const url = "/chats";

export function register(data) {
  return request({
    url: `${url}/register`,
    method: 'post',
    data
  })
}

export function unRegister() {
  return request({
    url: `${url}/un_register`,
    method: 'post'
  })
}

export function sendDataToUser(data) {
  return request({
    url: `${url}/send_data_to_user`,
    method: 'post',
    data
  })
}